package chapter4;

import java.util.Iterator;

import chapter2.Body;
import chapter3.Attr;

public class AttributedBody extends Body implements Attributed {
    
    private AttributedImpl attrImpl = new AttributedImpl();

    AttributedBody() {
        super();
    }

    @Override
    public void add(Attr newAttr) {
        attrImpl.add(newAttr);
    }

    @Override
    public Attr find(String attrName) {
        return attrImpl.find(attrName);
    }

    @Override
    public Attr remove(String attrName) {
        return attrImpl.remove(attrName);
    }

    @Override
    public Iterator<Attr> attrs() {
        return attrImpl.attrs();
    }

}
